package com.jinbei.service;

import com.github.pagehelper.PageInfo;
import com.jinbei.domain.PayOrder;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author zflu
 * 元宝充值service
 * Created by lucky on 2018/9/17.
 */
public interface PayOrderService {

    /**
     * @author zflu
     * @Description   元宝充值订单新增
     * @date 2018/9/17 16:06
     * @param payOrder
     * @return int
     */
    int insertPayOrder(PayOrder payOrder) throws Exception;

    /**
     * @author zflu
     * @Description   用户元宝充值订单审批
     * @date 2018/9/17 16:44
     * @param payOrder
     * @param request
     * @return int
     */
    int approverPayOrder(PayOrder payOrder , HttpServletRequest request) throws Exception;

    /**
     * @author zflu
     * @Description   用户元宝充值订单删除
     * @date 2018/9/17 16:54
     * @param id
     * @return int
     */
    int deletePayOrder(Integer id) throws Exception;

    /**
     * @author zflu
     * @Description  用户元宝充值订单详情
     * @date 2018/9/17 17:10
     * @param id
     * @return PayOrder
     */
    PayOrder queryPayOrderById(Integer id) throws Exception;

    /**
     * @author zflu
     * @Description
     * @date 2018/9/17 17:57
     * @param pageNum
     * @param pageSize
     * @return com.github.pagehelper.PageInfo<com.jinbei.domain.PayOrder>
     */
    PageInfo<PayOrder> queryPayOrderPage(int pageNum , int pageSize) throws Exception;
}
